﻿<?php
include("inc/global.inc");
include("inc/page.php");
$hover=1;
$url="news.php";
$thepage=$_GET['page']?$_GET['page']:1;
$maxpage=20;
$cust_rs=@mysql_query("select id,w_name from web_list where id='".$_GET['id']."'");
$cust_row=@mysql_fetch_array($cust_rs);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$cust_row[w_name]?>-<?php if($m_row[ispay]){echo $m_row[m_title2];?><?php }else{?><?php if($m_row[catalog_id3]){echo "$m_row[catalog_3]，";}?><?php if($m_row['catalog_id2']){echo "$m_row[catalog_2]，";}?><?php if($m_row[catalog_id1]){echo "$m_row[catalog_1]，";}?><?=$m_row['m_cname']?><?php if($m_row['catalog_id2']){echo "专业$m_row[catalog_2]产品供应商。";}?><?php }?></title>
<meta name="description" content="<?=$cust_row[w_name]?>，<?php if($m_row[ispay]){echo $m_row[m_description];?><?php }else{?><?php if($m_row['c_mainpro']){echo $m_row['c_mainpro']."，";}?><?=$m_row['m_cname']?><?php if($m_row['catalog_id2']){echo "专业$m_row[catalog_2]产品供应商。";}?><?php }?>"/>
<meta name="keywords" content="<?=$cust_row[w_name]?>，<?php if($m_row[ispay]){echo $m_row[m_keywords];?><?php }else{?><?php if($m_row['catalog_id2']){echo "$m_row[catalog_2]，";}?><?php if($m_row[catalog_id1]){echo "$m_row[catalog_1]，";}?><?php if($m_row['c_mainpro']){echo $m_row['c_mainpro']."，";}?><?=$m_row['m_cname']?><?php }?>" />
<link href="/<?=$template?>/css/allcss.css" rel="stylesheet" type="text/css" />
<link href="/css/template.css" rel="stylesheet" type="text/css" />
<link href="/css/top1.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php include("inc/top1.php")?>
<div class="main">
<?php include("inc/top2.php")?>
<div class="ban1">
<div class="flash">
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="486" height="194">
    <param name="movie" value="/flash/18.swf" />
    <param name="quality" value="high" />
	<param name="wmode" value="transparent" />
    <embed src="/flash/18.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="486" height="194" wmode="transparent"  value="transparent"></embed>
  </object>
</div>
</div>
<div class="path size11"><a href="/">首页</a> >> <?=$cust_row[w_name]?></div>
<div class="left">
<?php include("inc/left.php")?>
</div>
<div class="ad"></div>
<div class="right">
<div class="rightbox">
  <div class="profile">
    <div class="font14 b fontyellow"><?=$cust_row[w_name]?></div>
<table cellspacing="0" width="100%" class="tables data" border="0">
<?php $l_rs=@mysql_query("select * from costom_list where web_list_id='$cust_row[id]' order by id desc limit ".($thepage-1)*$maxpage.",$maxpage");
      while($l_row=@mysql_fetch_array($l_rs)){
?>
	  <tr>
        <td width="88%" height="25"><a href="/custom/detail/<?=$l_row[id]?>.htm" target="_blank"><?=$l_row[c_name]?></a></td>
        <td width="12%" height="25"><?=date("Y-m-d",strtotime($l_row[c_addtime]))?></td>
      </tr>
<?php
}
$rs2=@mysql_query("select count(id) from costom_list where web_list_id='$cust_row[id]'");
$totalrecord=@mysql_result($rs2,0);
@mysql_free_result($rs2);
$totalpage=ceil($totalrecord/$maxpage);
?>
    </table>
</div>
  <div class="page">
    <div class="pageleft">
      <ul>
<?php pages($thepage,$totalpage,$maxpage,9);?>
      </ul>
    </div>
    <div class="pageright">
<form name="pageform" method="post" action="" onSubmit="return onCheckPage()"> 
共<?=$totalpage?>页，到第<input name="text" type="text" class="input-txt" />页
<input type="submit" value="确定" class="but" />
</form>
<script language="javascript"> 
function onCheckPage(){ 
var page = parseInt(document.pageform.page.value); 
if(isNaN(page)){ 
alert("请输入数字(1,<?=$totalpage?>)"); 
return false; 
} 
if(page <= 0 ) { 
page =1; 
} 
if(page ><?=$totalpage?>){ 
page=<?=$totalpage?>; 
} 
if(page>1 ) { 
document.pageform.action = "/custom/1/<?=$_GET[id]?>"+page+".htm"; 
} else { 
document.pageform.action = "/custom/1/<?=$_GET[id]?>/1.htm"; 
}
return true; 
}
--> 
</script>
    </div>
    <div class="onl"></div>
  </div>
</div>
</div>
<div class="onl"></div>
</div>
<?php include("inc/foot.php");?>
</body>
</html>

